--
-- @Author:      name
-- @DateTime:    2018-03-30 23:05:48
-- @Description: 消息的处理

local skynet = require "skynet"



local MessageHandler = class("MessageHandler")

---------------------------------------------------------
-- Private
---------------------------------------------------------
function MessageHandler:ctor(message_dispatch)
	self.message_dispatch = message_dispatch
	self.node_message = nil
	self.desk = nil


	
	self:register()
		
end

--注册本服务里的消息
function MessageHandler:register()

	

	-- self.message_dispatch:registerSelf('nnBetReq',handler(self,self.nnBetReq))
	-- self.message_dispatch:registerSelf('nnBankReq',handler(self,self.nnBankReq))
	-- self.message_dispatch:registerSelf('nnOpenCardReq',handler(self,self.nnOpenCardReq))


end


---------------------------------------------------------
-- CMD
---------------------------------------------------------
--初始化
function MessageHandler:start(table_id)
	print("___deskStart______")
	self.table_id = table_id
	self.node_message = global.node_message
	self.desk = global.desk
	self.config = global.config
	self.user_manager = global.user_manager

end




return MessageHandler